package cn.memorynine.consumer.mapper;

import cn.memorynine.consumer.model.personal.activity.ActivityListParam;
import cn.memorynine.consumer.model.personal.forum.ReplyListParam;
import cn.memorynine.consumer.model.personal.order.OrderListParam;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
@Mapper
public interface PersonalCenterMapper {
    public List<Map<String, Object>> cartItemList(Integer aid);

    /**
     * 获取用户的订单列表(分页)
     */
    List<Map<String, Object>> getOrderList(OrderListParam param);

    /**
     * 获取用户的订单列表（总数）
     */
    Integer getOrderListCount(OrderListParam param);

    /**
     * 获取用户参与的活动列表(分页)
     */
    List<Map<String, Object>> getActivityList(ActivityListParam param);

    /**
     * 获取用户参与的活动列表(总数)
     */
    Integer getActivityListCount(ActivityListParam param);

    /**
     * 获取当前用户所有回复列表
     * @param param
     * @return
     */
    List<Map<String, Object>> getReplyList(ReplyListParam param);

    /**
     * 获取当前用户所有回复列表(计数)
     * @param param
     * @return
     */
    Integer getReplyListCount(ReplyListParam param);
}
